//
//  SDAnimationCompiler.m
//  SBooks
//
//  Created by shansander on 2016/11/15.
//  Copyright © 2016年 shansander. All rights reserved.
//

#import "SDAnimationCompiler.h"

@implementation SDAnimationCompiler


+ (POPBasicAnimation *)getAnimation_changeScreenViewtonativeBarViewFromSize:(CGSize)fsize toSize:(CGSize)tSize{
    POPBasicAnimation * animtion = [POPBasicAnimation animationWithPropertyNamed:kPOPViewSize];
    
    animtion.fromValue = [NSValue valueWithCGSize:fsize];
    animtion.fromValue = [NSValue valueWithCGSize:tSize];
    animtion.duration = 0.3;
    return animtion;
}

+ (POPBasicAnimation *)getAnimation_hideCenterTitleLabel{
    POPBasicAnimation * animation = [POPBasicAnimation animationWithPropertyNamed:kPOPViewAlpha];
    animation.toValue = @(0.0);
    animation.duration = 0.1;
    return animation;
}

+ (POPBasicAnimation *)getAnimation_showTextWithCenter:(CGPoint)centerP
{
    POPBasicAnimation * animation = [POPBasicAnimation animationWithPropertyNamed:kPOPViewCenter];
    animation.toValue = [NSValue valueWithCGPoint:CGPointMake(centerP.x, centerP.y - 20)];
    animation.duration = 0.5;
    return animation;
}

+ (POPBasicAnimation *)getAnimation_showTextWithAlpha
{
    POPBasicAnimation * animation = [POPBasicAnimation animationWithPropertyNamed:kPOPViewAlpha];
    animation.toValue = @(1);
    animation.duration = 0.5;
    return animation;
}

@end
